/**
 * Created by zxh on 14-7-14.
 */

ms.UITextLayer = ms.UILayer.extend({
    ctor: function() {
        this._super();
        this._ccsFileName = "textLayer.json";
    },

    setText: function(string) {
        if (string) {
            this._textLabel.string = string;
        }
    },

    onCloseTouchEnded: function() {
        this.removeFromParent();
    }

});